#!/bin/mksh

# begone, xfce4
# you will be remembered
# alias sx='startxfce4'

alias a=alias

# the necessary
a sudo='sudo '
a vim=nvim
a v=nvim
a nv=nvim
a vv=vis
a where='pwd'
a rv=rover
a please='fc -e "sed -i -e \"s/^/sudo /\""'
a MOVE='fc -e "sed -i -e \"s/^mv/mkdirmv /\""'
a shutdown='sudo shutdown'
a reboot='sudo reboot'
a poweroff='sudo poweroff'
a clip='xclip -sel clip'
a plic='xclip -sel clip -o'
a l=ls
a ll='ls -l'
a lla='ls -la'

# git
a gb='git branch'
#a gs='git status'
a gd='git diff'
a ga='git add'
a gl='git log'
a gc='git commit'
a gp='git pull'
a gP='git push'
a gf='git fetch'
a gdc='git diff --cached'

# the luxury stuff
a {cc,cll,clear,clar,clea}=clear
a h='head -n 15'
a t='tail -n 15'
a xi='sudo xbps-install'
a xq='xbps-query'
a xr='sudo xbps-remove'
a tornewexitnode="(echo authenticate '""'; echo signal newnym; echo quit) | nc localhost 9050"
a present='(${HOME}/packages/presentationterminal/st &> /dev/null &)'
a s='(st 2> /dev/null &)'
a e='(pcmanfm 2> /dev/null &)'
a weather='curl wttr.in'
a pull-latest="strlst -c pull -f $(date +%Y-%m).ms -s"
a push-latest="strlst -c push -f $(date +%Y-%m).ms"
a de-layout='setxkbmap de,at'
a en-layout='setxkbmap us -variant intl'
a pri='pdfgrep -ri'
a wimhof='mpv /media/music/misc/guided-wim-hof-breathing.mkv'
a lib='cd /media/library'
a clogs='~/py/clogs/clogs.py'
a co='code-oss'

# fun
a heart='printf "%b\n" "\xe2\x9d\xa4"'
a worldline='echo 1.048596'
a elpsykongroo='echo "El Psy Kongroo" | base64 | clip && plic'
a month="echo $(date +%Y-%m)"
a ポワオッフ="poweroff"
a FUCK=echo\ "it\'s ok"

# clutch
#a optirun='LD_PRELOAD=/usr/lib/libGL.so __GLVND_DISALLOW_PATCHING=1 optirun'
#a kid3-qt='(QT_SCALE_FACTOR=1 QT_AUTO_SCREEN_SCALE_FACTOR=0 kid3-qt &> /dev/null &)'
a wpa_gui='(QT_SCALE_FACTOR=1.5 QT_AUTO_SCREEN_SCALE_FACTOR=0 wpa_gui &> /dev/null &)'
a motherbaord='sudo dmidecode -t 2'
a deflacd320='deflac . -b320 && rm *flac'
a dewavd320='dewav . -b320 && rm *wav'
a dbeaver='dbeaver -vm /usr/lib/jvm/openjdk11/bin/'
a whatthefuckistakingupsomuchspaceagain='cd ~; find ~ -maxdepth 1 -type d | sed 1d | xargs du -hs'
a whatthefuckistakingupsomuchspaceagainsorted='whatthefuckistakingupsomuchspaceagain | sort -h'
a todofix='v ${HOME}/.local/share/strlst/.todo'
a trackfix='v ${HOME}/.local/share/strlst/.track'
a p='cd ~/personal'
a ALLTHEPDFS='sleep 2; for i in ./*.pdf; do open $i; done'
a norisc='cd ~/hw/fpga/norisc'

# work
. ${HOME}/.local/share/${USER}/.work-aliases

# uni
. ${HOME}/.local/share/${USER}/.uni-aliases

# home
. ${HOME}/.local/share/${USER}/.home-aliases
